﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.IO.Ports;

namespace TunnelBackground
{
    class COM
    {
        public static SerialPort _sp = new SerialPort();


        static COM()
        {
            SP.PortName = Properties.Settings.Default.portname;
            SP.BaudRate = Properties.Settings.Default.baudrate;
            SP.DataBits = Properties.Settings.Default.databits;
        }

        public static SerialPort SP
        {
            get
            {
                return _sp;
            }

            set
            {
                _sp = value;
            }
        }
        
        
    }
}
